package com.iscreen.dbupgrade;

import com.iscreen.dbupgrade.operations.OperationsHandler;
import com.iscreen.dbupgrade.operations.mysql.MySqlOperationsHandler;
import com.iscreen.dbupgrade.queries.QueryFactory;
import com.iscreen.dbupgrade.queries.QueryUtils;
import com.iscreen.dbupgrade.queries.mysql.MySqlQueryFactory;
import com.iscreen.dbupgrade.queries.mysql.MySqlQueryUtils;
import com.iscreen.utils.db.connection.DBConnection;

public class DBUpgradeFactory
{
	private QueryFactory queryFactory;
	private QueryUtils queryUtils;
	private OperationsHandler operationsHandler;

	protected DBUpgradeFactory(DBConnection connection)
	{
		queryFactory = new MySqlQueryFactory();
		queryUtils = new MySqlQueryUtils(connection);
		operationsHandler = new MySqlOperationsHandler();
	}

	public QueryFactory getQueryFactory()
	{
		return queryFactory;
	}

	public QueryUtils getQueryUtils()
	{
		return queryUtils;
	}

	public OperationsHandler getOperationsHandler()
	{
		return operationsHandler;
	}

}
